home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / makeflag.os2 < prev    next >
Text File  |  1995-12-30  |  2KB  |  100 lines

  1. #
  2. # OS2 using EMX 0.9a gcc 2.6.3, and gnumake.
  3. #
  4.  
  5. EMX_DIR = d:/g/emx
  6. IRIT_DIR = d:/c/irit
  7.  
  8. #
  9. # Location of object file to resolve circularities in libraries.
  10. #
  11. CIRCLINK = $(IRIT_DIR)/circlink/circlink.o
  12.  
  13. #
  14. # Name of graphics drivers to generate.
  15. #
  16. GRAPDRVS = os2drvs.exe nuldrvs.exe
  17.  
  18. #
  19. # Generic tools from the unix world
  20. #
  21.  
  22. RM = rm
  23. CP = cp
  24. MV = mv
  25. STRIP = strip +strip-debug 
  26.  
  27. #
  28. # All libraries created will be installed into the LIB_DIR directory.
  29. #
  30.  
  31. LIB_DIR = $(IRIT_DIR)/lib
  32. PRSR_LIB = $(LIB_DIR)/libprsr.a
  33. CAGD_LIB = $(LIB_DIR)/libcagd.a
  34. TRIM_LIB = $(LIB_DIR)/libtrim.a
  35. TRIV_LIB = $(LIB_DIR)/libtriv.a
  36. SYMB_LIB = $(LIB_DIR)/libsymb.a
  37. GEOM_LIB = $(LIB_DIR)/libgeom.a
  38. MISC_LIB = $(LIB_DIR)/libmisc.a
  39. XTRA_LIB = $(LIB_DIR)/libxtra.a
  40. BOOL_LIB = $(LIB_DIR)/libbool.a
  41. GIF_LIB = d:/c/gif_lib/lib/libgif.a
  42.  
  43. #
  44. # Where gcc libraries are to searched for.
  45. #
  46. GCC_LIB_DIR = $(EMX_DIR)/lib
  47. GCC_INC_DIR = $(EMX_DIR)/include
  48.  
  49. #
  50. # All includes files associated with the libraries compiled here will be
  51. # installed into the INC directory.
  52. #
  53. INC_DIR = $(IRIT_DIR)/include
  54. GIF_INC = d:/c/gif_lib/lib
  55.  
  56. #
  57. # All binaries created will be installed into the BIN directory.
  58. #
  59. BIN_DIR = d:/c/irit/bin
  60.  
  61. # Your C compiler and linker.
  62. #
  63. # -DSUPPORT_GIF_SAVE if you actually have gif lib and would like poly3d to
  64. # save gif images.
  65. #
  66. CC = gcc
  67. DFLAGS = -DOS2GCC -DSUPPORT_GIF_SAVE -DRAND
  68. #CFLAGS = -O2 -W -Wall -I. -I$(INC_DIR)
  69. CFLAGS = -g -W -Wall -I. -I$(INC_DIR) -I$(GIF_INC)
  70.  
  71. #
  72. # Default rule for compilation.
  73. #
  74. %.o: %.c
  75.     $(CC) -c $(CFLAGS) $(DFLAGS) -o $@ $<
  76.  
  77. #
  78. # All libraries.
  79. #
  80. LIBS = $(CIRCLINK) $(BOOL_LIB) $(GEOM_LIB) $(PRSR_LIB) $(TRIM_LIB) \
  81.     $(TRIV_LIB) $(SYMB_LIB) $(CAGD_LIB) $(MISC_LIB) $(XTRA_LIB) \
  82.     $(GIF_LIB) -los2
  83.  
  84.  
  85. #
  86. # Binding command and options (see EMX gcc develop.doc file for more).
  87. #
  88. EMXBIND = emxbind
  89. BIND = $(EMXBIND) $(EMX_DIR)/bin/emxl
  90. BINDOPT =
  91.  
  92. #
  93. # Default rule to make an executable file.
  94. #
  95. %.exe:
  96.     $(CC) $(CFLAGS) -o $(*F) $^ $(LIBS)
  97.     $(STRIP) $(*F)
  98.     $(BIND) $(*F) $(BINDOPT)
  99.     rm $(*F)
  100.